package org.github.manx98.jlibhac.fs.fsa;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 13:45
 */
public enum OpenDirectoryMode {
    Directory(1),
    File(1 << 1),
    NoFileSize(1 << 31),
    All(Directory.value | File.value);

    public final int value;

    OpenDirectoryMode(int i) {
        this.value = i;
    }

    public boolean hasFlag(OpenDirectoryMode mode) {
        return (this.value & mode.value) > 0;
    }
}
